var url = "http://hw.mashupcloud.cn/mcloud/developer/auth.do";
var token;
$(function() {
	token = sessionStorage.getItem("token");
	if(!token) {
		$.ajax({
			url: url,
			type: "post",
			data: key,
			success: function(data) {
				token = JSON.parse(data)[1];
				sessionStorage.setItem("token", token);
			},
			error: function(er) {
				console.log(er);
			}
		});
	}
});